package com.yang.dubbo.service;

import com.yang.dubbo.model.Member;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserService {
    @Reference
    TicktService ts;

//    @Reference
//    Middleman m;

    public String  buyTicket(){
        return "买到。。。"+ts.getTicket();

        //return m.stock();
    }

    public List<Member> queryAll() {
        return ts.queryAll();
    }

    public Map<String, Object> insertAll() {
        return ts.insertAll();
    }
}
